package com.myjava.thread;

/**
 * @auther: tao
 * @date: 2018/9/21 10:52
 * @description:
 */
public class ThreadDemo3 {

    public static void main(String args[]) {
        //定义Runnable子类对象
        MyThread3 my = new MyThread3();
        //系统自动设置线程名称
        new Thread(my).run();
        //系统自动设置线程名称2
        new Thread(my).start();
        //手工设置线程名称
        new Thread(my, "线程A").start();
    }
}